package com.xzlf.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_file")
public class TFile implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "type")
    private String type;

    @TableField(value = "content")
    private String content;

    @TableField(value = "create_data",fill = FieldFill.INSERT)
    private Date createData;


    public TFile(String name, String type, String content) {
        this.name = name;
        this.type = type;
        this.content = content;
    }
}